﻿using KeYan.Service.Common.Enum;
using KeYan.Service.Model.Shop;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KeYan.Service.IService.Shop
{
    public interface ServeIService
    {
        /// <summary>
        /// 购买服务
        /// </summary>
        /// <param name="serviceName">通过服务名判断是否重复</param>
        /// 服务器名重复则购买数量增加，购买年限增加，服务结束时间增长
        /// <returns></returns>
        Task<Resilt<int>> AddShopping(int ServeId, ServeInfo serveInfo);
    }
}
